import request from '@/utils/request'

export function getService() {
  return request({
    url: '/service',
    method: 'get'
  })
}

export function addService(addServiceInfo) {
  return request({
    url: '/service',
    method: 'POST',
    data:addServiceInfo
  })
}

export function updateService(updateServiceInfo) {
  return request({
    url: `/service/${updateServiceInfo._id}`,
    method: 'put',
    data:updateServiceInfo
  })
}

export function delService(delServiceId) {
  return request({
    url: `/service/${delServiceId}`,
    method: 'delete',
  })
}

export function getShop() {
  return request({
    url: '/shopDoors',
    method: 'get',
  })
}


///不要删！！！！！！！！！！
//不要删！！！！！！
export function updateShopDoorservice(payload) {
  return request({
    url: `/shopDoors/${payload._id}`,
    method: "put",
    data: payload
  })
}

